package com.nenmei.source.controller;

import com.nenmei.source.bean.Employee;
import com.nenmei.source.bean.Pet;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @date: 2021/10/04
 * @time: 22:13
 * @author: yyf
 */
@Controller
public class AdminController {

    @Autowired
    private Employee employee;

    @RequestMapping("/admin")
    @ResponseBody
    public Employee admin() {
        employee.setName("露露");
        employee.setAge(23);
        employee.setPet(new Pet("tom"));

        System.out.println("20000000000");
        System.out.println("测试不提交到本地,直接提交到码云,是否可行");
        return employee;
    }
}











